<!DOCTYPE html>
<html lang="ch">
<head>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/popper.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/bootstrap.js') }}"></script>
</head>
<div class="row">
    <div class="col-12 align-content-center pt-5">
        <form method="post"  action="{{ url_for('auth.check') }}" id="login" class="m-auto border-success p-3 border rounded">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" class="form-control" name="username" id="username" aria-describedby="usernameHelp">
                <small id="usernameHelp" class="form-text text-muted">我们不会分享您的登录信息</small>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" name="password" class="form-control" id="password">
            </div>
            {% if error %}
            <div class="alert alert-warning" role="alert">
              {{ error }}!
            </div>
            {% endif %}
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>
</html>
